package com.woniu.common.constant;


import com.woniu.common.enums.ExceptionCode;

public class Constants
{
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";


    public static final String REDIS_KEY_ONLINE = "OnlineMovies";
    public static final String REDIS_KEY_COMINGMOVIES = "ComingMovies";
    public static final String REDIS_KEY_TODAYLOADMOVIES = "TodayBoxMovies";

    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";
    
    /**
     * 防重提交 redis key
     */
    public static final String REPEAT_SUBMIT_KEY = "repeat_submit:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    public static final String TOKEN = "token";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 用户ID
     */
    public static final String JWT_USERID = "userid";

    /**
     * 用户名称
     */
    public static final String JWT_USERNAME = "sub";

    /**
     * 用户头像
     */
    public static final String JWT_AVATAR = "avatar";

    /**
     * 创建时间
     */
    public static final String JWT_CREATED = "created";

    /**
     * 用户权限
     */
    public static final String JWT_AUTHORITIES = "authorities";

    /**
     * 参数管理 cache key
     */
    public static final String SYS_CONFIG_KEY = "sys_config:";

    /**
     * 字典管理 cache key
     */
    public static final String SYS_DICT_KEY = "sys_dict:";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";


    public static final String MESSAGE_USER_REGISTER_ROUTING = "MESSAGE_USER_REGISTER_ROUTING";
    public static final String MESSAGE_USER_REGISTER_EXCHANGE = "MESSAGE_USER_REGISTER_EXCHANGE";
    public static final String MESSAGE_USER_REGISTER_QUEUE = "MESSAGE_USER_REGISTER_QUEUE";
    public static final String REGISTER_IPHONE_CNT = "REGISTER_IPHONE_CNT";
    public static final String CELL_IPHONE_VERIFY_CODE_LIMIT = "不好意思,24小时内只能访问3次";
    public static final String REGISTER_IPHONE_CODE = "REGISTER_IPHONE_CODE";
    public static final String LOGIN_TOKEN_AUTH = "Authorization";
    public static final Integer UNPAY_ORDER_STATUS = 1 ;
    public static final Integer SEAT_STATUS_SOLD = 2;
    public static final String ORDER_DELAY_QUEUE = "ORDER_DELAY_QUEUE";
    public static final String ORDER_DEAD_QUEUE = "ORDER_DEAD_QUEUE";
    public static final String ORDER_DELAY_EXCHANGE = "ORDER_DELAY_EXCHANGE";
    public static final String ORDER_DEAD_EXCHANGE = "ORDER_DEAD_EXCHANGE";
    public static final String ORDER_DELAY_ROUTING = "ORDER_DELAY_ROUTING";
    public static final String ORDER_DEAD_ROUTING = "ORDER_DEAD_ROUTING";
    public static final Integer SEAT_STATUS_NULL = 1;
    public static final String ACCOUNT_NAME = "acctoken";
    public static final String RETURN_URLS = "http://www.wncinema.com/orderList.html";
}
